package com.onpositive.html.model;

public class StringEntry extends AbstractTableEntry implements IParametrizedTableEntry<String>{

	private String value;
	
	public StringEntry(String text) {
		this.value = text;
	}

	@Override
	public String getStringValue() {
		return value;
	}

	@Override
	public String getObject() {
		return value;
	}

	@Override
	public Class<String> getObjectClass() {
		return String.class;
	}

	@Override
	public void setObject(Object object) {
		if(object==null){
			value=null;
		}		
		else{
			value = object.toString();
		}
			
	}

}
